<?php

/**
 * @author Nguyen Xuan Hong
 * @copyright 2010
 */
require_once("includes/video.tbl.php");
$pClsVideo = new clsVideoTable();
$pClsVideo->loadDB('id', 1);
?>
<div class="w280" valign="top">
	<?
		include("quicklogin.php"); 
	?>
	<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9" bgcolor="#98e04e">
		<tr>
			<td class="w280 h31 lr_menu" align="center">
				VIDEO CỦA BÉ
			</td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 notop" bgcolor="#eafddd">
		<tr>
			<td class="w280 h230" align="center" valign="middle">
				<embed id="index-videoplayer1" width="260px" allowfullscreen="true" height="220px" src="flvplayer.swf?autostart=<?php if($page=="video") echo("false"); else echo("false");?>&repeat=always&file=<? echo($pClsVideo->value('url'));?>&filename=mediaplayer" name="player"/>
			</td>
		</tr>
	</table>
	<div class="h10"></div>
	<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9" bgcolor="#5f87e6">
		<tr>
			<td class="w280 h31 lr_menu" align="center">
				HÌNH ẢNH CỦA BÉ
			</td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0" border="1" class="bda7a7a9 notop" bgcolor="#e4ebfa">
		<tr>
			<td class="w280 h200" align="center" valign="middle">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td class="w240 h180" align="center" valign="middle">
						<?
						require_once("includes/picture.tbl.php");
						$pClsPicture = new clsPictureTable();
						$listpicture = $pClsPicture->listobj(0, 6);
						if($listpicture)
						{
						?>
							<marquee behavior="scroll" direction="up" onmouseout="this.start()" onmouseover="this.stop()" scrolldelay="100" scrollamount="3" height="100%" align="center">
								<!-- Part 1 -->
								<ul> 
								<? 
								foreach($listpicture as $picture)
								{
									$url = $picture->value('url');
									if(is_file($url))
									{
									?>
										<li>
											<a href="?page=picture" title="<? echo($picture->value('title'))?>">
											<img src="/resize.php?t=ratio&s=240|180&u=<? echo($picture->value('url'))?>" width="240" height="180">  
											</a>
										</li>
									<? 
									}
								}
								?>
								</ul>
							</marquee> 
							<?
							}
							?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<div style="height:10"></div>
</div>